﻿namespace wToggle.Platform.Interfaces
{
    using System.Threading.Tasks;

    public interface IBasicDataProvider<TEntity> where TEntity : class, IEntity
    {
        Task<TEntity> Create(TEntity entity, bool withLock = true);

        Task<TEntity> Update(TEntity entry, bool withLock = true);

        Task<bool> Delete(ulong id, bool withLock = true);
    }
}